Definition:
- Where the lack of testing with 0 is the source of a lot of bugs.
Code Example:
// ensuring that there’s a value for and then testing that it’s off screen
// but if element.top is equals to 0, results goes wrong
if (element.top && (element.top < viewport.top)) {
hidePane();
}
References:
Quality attributes
- :octicon:`file-code;1em` - Code Example
- :octicon:`comment-discussion;1em` - Cause and Effect
- :octicon:`graph;1em` - Frequency
- :octicon:`sync;1em` - Refactoring